//
//  MYGLoading.swift
//  MYGrow
//
//  Created by 小火科技 on 2024/3/4.
//

import UIKit
import Toast_Swift

struct MYGLoading {
    static func show(_ view: UIView? = UIViewController.currentViewController?.view) {
        DispatchQueue.main.async {
            view?.makeToastActivity(.center)
        }
    }
    
    static func hide(_ view: UIView? = UIViewController.currentViewController?.view) {
        DispatchQueue.main.async {
            view?.hideToastActivity()
        }
    }
}
